﻿using FreeSql.DataAnnotations;
using Jumei.Common.BaseModel;
using System;

namespace Jumei.Model.Business.MemberManage
{
    /// <summary>
    /// 会员等级表
    /// </summary>
	[Table(Name = "mb_member_ranks")]
    [Index("idx_{tablename}_01", nameof(RankName), true)]
    public class MemberRanksEntity : EntityFull, ITenant
    {
        /// <summary>
        /// 租户Id
        /// </summary>
        [Column(Position = -10)]
        public long? TenantId { get; set; }

        /// <summary>
        /// 等级名称
        /// </summary>
        [Column(StringLength = 20)]
        public string RankName { get; set; }

        /// <summary>
        /// 开始积分(大于开始积分)
        /// </summary>
        public int StartScore { get; set; }

        /// <summary>
        /// 结束积分(包含结束积分)
        /// </summary>
        public int EndScore { get; set; }

        /// <summary>
        /// 等级图标
        /// </summary>
        [Column(StringLength = 100)]
        public string RankImg { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        public bool Enabled { get; set; } = true;
    }
}
